﻿<%@ Control Language="C#" %>

<%@ Register Assembly="Antu.WebControls" Namespace="Antu.WebControls" TagPrefix="CBW" %>
<style type="text/css">
    #ctl00_MainerRegion_TransactbusinessSkin___CustomGridView1_Div1
    {
        border:#74a4c0 1px solid;
        border-top-width:0px;
        background-color:#ffffff;
        border-collapse:collapse;
        font-family:"Verdana" , "Arial" , "Helvetica" , "sans-serif"; 
        font-size:12px;
        text-align:left;
        padding:0 0 0 5px;
        line-height:30px;
        height:30px;
    }
</style>
<script type="text/javascript">
    window.onload = function() {
        var t = '<%=System.Configuration.ConfigurationManager.AppSettings["CaiJueKe"].ToString() %>';
        var u = '<%=HttpContext.Current.Session["UserId"] %>';
        var trtype = document.getElementById("trtype");
        if (u == t) {
            trtype.style.display = "none";
        }
    }
    function Openew(urltitle, iid, wiid, ctlid) {
        var url = urltitle + '?iid=' + iid + '&wiid=' + wiid + '&ctlid=' + escape(ctlid) + '&rd=' + Math.random();
        var feature = "dialogWidth:" + 450 + "px;dialogHeight:" + 400 + "px;scroll:yes;status:no;help:no;center:1";
        var project_info = window.showModalDialog(url, '', feature);
        window.location.href = window.location.href;
    }
    function OpenCL(urltitle, iid, wiid, ctlid, isback) {
        var Url = urltitle + '?iid=' + iid + '&wiid=' + wiid + '&ctlid=' + escape(ctlid) + '&isback=' + isback + '&rd=' + Math.random();
        window.open(Url);
    }
    function showtab() {
        document.getElementById('tab1').style.display = 'block';
        document.getElementById('Button1').style.display = 'none';
    }
    function showbtn() {
        document.getElementById('Button1').style.display = 'block';
        document.getElementById('tab1').style.display = 'none';
    }
</script>

<CBW:CustomGridView ShowItemNumber="false" AutoGenerateColumns="false" ID="CustomGridView1"
    runat="server" AllowPaging="true" AllowSorting="false" ShowCmpAndCancel="False" ShowHideColModel="None" Width="100%"
    CssClass="gridtable" HideTextLength="10">
    <Columns>
        <asp:TemplateField HeaderText="处理">
            <ItemTemplate>
                <a href="#" onclick="OpenCL('WorkFlowHandler.aspx','<%#Eval("siid") %>','<%#Eval("wiid") %>','<%#Eval("所在岗位CTLID") %>','<%#Eval("ISBACK") %>')">
                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Themes/Default/Images/Icons/handler.png" Width="25px" /></a>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="挂起">
            <ItemTemplate>
                <a href="#" onclick="Openew('SuspendApply.aspx','<%#Eval("siid") %>','<%#Eval("wiid") %>','<%#Eval("所在岗位CTLID") %>')">
                <asp:Image ID="Image2" runat="server" ImageUrl="~/Themes/Default/Images/Icons/suspend.png" Width="25px" /></a>
            </ItemTemplate>
        </asp:TemplateField>
        <%--<asp:TemplateField HeaderText="回退">
            <ItemTemplate>
                <a href="Rollback.aspx?iid=<%#Eval("顺序号") %>&wiid=<%#Eval("wiid") %>&ctlid=<%#Eval("所在岗位CTLID") %>" target="_blank">
                    <asp:Image ID="Image1" runat="server" ImageUrl="~/Themes/Default/Images/Icons/rollback.png" Width="25px" /></a>
            </ItemTemplate>
        </asp:TemplateField>--%>
        <asp:BoundField DataField="顺序号" HeaderText="案件编号" />
        <asp:BoundField DataField="案件类型" HeaderText="案件类型" />
        <asp:BoundField DataField="申请单位" HeaderText="申请单位" />
        <asp:BoundField DataField="接收时间" HeaderText="接收时间" />
        <asp:BoundField DataField="前一用户" HeaderText="前一用户" />
        <asp:BoundField DataField="剩余工作日" HeaderText="剩余工作日" />
        <asp:BoundField DataField="所在岗位" HeaderText="所在岗位" />
          <asp:TemplateField HeaderText="优先级">
            <ItemTemplate>                
                <asp:Image  ImageUrl="~/Themes/Default/Images/top_ico_yxj1.gif" runat="server" ID="img"/>
            </ItemTemplate>
        </asp:TemplateField>
        <asp:BoundField DataField="督办过期" HeaderText="督办过期" />
        <asp:BoundField DataField="结点过期" HeaderText="结点过期" />

        <asp:TemplateField HeaderText="是否回退">
            <ItemTemplate><%#(Eval("ISBACK").ToString()=="1")?"回退":"正常" %></ItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField HeaderText="案件状态">
            <ItemTemplate><%#(Eval("案件状态").ToString()=="1")?"正常":Eval("案件状态") %></ItemTemplate>
        </asp:TemplateField>
    </Columns>
</CBW:CustomGridView>

<center>
<table class="gridtable1" width="320px" id="tab1" style="display:none;">
    <tr>
        <th colspan="2">案件列表</th>
    </tr>
    <tr id="trtype">
        <td style="text-align:right;">案件类型：</td>
        <td style="text-align:left;">&nbsp;&nbsp;
            <asp:DropDownList runat="server" ID="ddltype"></asp:DropDownList>
        </td>
    </tr>
    <tr>
        <td style="text-align:right;">案件编号：</td>
        <td style="text-align:left;">&nbsp;&nbsp;              
         <asp:TextBox runat="server" ID="txtbh"></asp:TextBox>
        </td>
       
    </tr>
    <tr>
        <td style="text-align:right;">申请单位：</td>
         <td style="text-align:left;">&nbsp;&nbsp;
         <asp:TextBox ID="taskname" runat="server"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td style="text-align:right;">区划：</td>
        <td style="text-align:left;">&nbsp;&nbsp;
        <asp:DropDownList runat="server" ID="ddlqh"></asp:DropDownList></td>
    </tr>
    <tr>
        <td style="text-align:right;">项目名称：</td>
        <td style="text-align:left;">&nbsp;&nbsp;
        <asp:TextBox runat="server" ID="txtxmname"></asp:TextBox></td>
    </tr>
    <tr>
        <td style="text-align:right;">征收决定号：</td>
        <td style="text-align:left;">&nbsp;&nbsp;
        <asp:TextBox runat="server" ID="txtzsh"></asp:TextBox></td>
    </tr>
    <tr>
        <td style="text-align:right;">被 征 收 人：</td>
        <td style="text-align:left;">&nbsp;&nbsp;
        <asp:TextBox runat="server" ID="txtzsr"></asp:TextBox></td>
    </tr>
    <tr>
        <td style="text-align:right;">房屋坐落：</td>
        <td style="text-align:left;">&nbsp;&nbsp;
        <asp:TextBox runat="server" ID="txtzl" Width="100%"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <asp:Button ID="search" runat="server" Text="查询" OnClientClick="showbtn()" />
        </td>
    </tr>
</table>
</center>
<div style="margin-top:5px; padding-left:5px;">
    <input id="Button1" type="button" value="查询" onclick="showtab()" />
</div>
&nbsp;&nbsp;